package com.smart.manager.work.entities.body;

import com.smart.common.entities.core.BaseSearch;
import com.smart.manager.system.entities.views.SimpleAccount;
import com.smart.manager.work.entities.assembler.TasksList;
import com.smart.manager.work.views.BasicStaffView;
import com.smart.manager.work.views.OrderView;
import io.ebean.annotation.DbJson;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;


/**
 *
 * @author xiaxuqiu
 * @date 2023/03/26
 */
public class RTaskMain {

    @Data
    @EqualsAndHashCode(callSuper = true)
    @ApiModel("RPigTaskKind1")
    public static class SearchBody extends BaseSearch {

        @ApiModelProperty("处理客服")
        private  Long accountId;

        @ApiModelProperty("分配管家")
        private Long staffId;

        @ApiModelProperty("查询自己")
        private Boolean yourself;

    }


    @Data
    @ApiModel("RPigTaskKind2")
    public static class EditBody  implements Serializable {

        @ApiModelProperty("处理客服")
        private SimpleAccount account;

        @ApiModelProperty("工作内容")
        private List<Object> content;

        @ApiModelProperty("分配管家")
        private BasicStaffView staff;

        @ApiModelProperty("是否分配入栏")
        private Boolean isEnter;

        @ApiModelProperty("分配时间")
        private LocalDateTime refreshExpiredTime;

    }


    @Data
    @ApiModel("RPigTaskKind2")
    public static class AllocationBody  implements Serializable {

        private Long id;
        private Long code;
        private Boolean isRead;


    }


}
